
package demo.pivot;

import java.awt.Color;
import java.awt.Font;

import org.apache.pivot.collections.Map;
import org.apache.pivot.wtk.Display;
import org.apache.pivot.wtk.HorizontalAlignment;
import org.apache.pivot.wtk.Label;
import org.apache.pivot.wtk.VerticalAlignment;

import demo.pivot.base.BaseView;

public class LoginView extends BaseView {

	@Override
	protected void process(Display display, Map<String, String> properties) throws Exception {
		//Window window = getWindowInstance();
		
		Label label = new Label();
		label.setText("这只是个 测试 真麻烦啊AAA!");
		label.getStyles().put("font", new Font("宋体", Font.BOLD, 24));
		label.getStyles().put("color", Color.RED);
		label.getStyles().put("horizontalAlignment", HorizontalAlignment.CENTER);
		label.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
		System.out.println("只是个控制台输出");

		window.setContent(label);
		window.setTitle("Hello World!");
		window.setMaximized(true);
		
		window.open(display);		
	}
}
